home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
artemis
/
artsrc1
/
pict.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-06-01
|
28KB
|
810 lines
/*
ARTemis (Graphic Editor for FM-TOWNS)
(c) MATSUUCHI Ryosuke 1992,1993
pict.c
*/
#include <stdio.h>
#include <egb.h>
#include <msdos.cf>
#include "ge.h"
static char pic_nonum[] =
{ 0xfe, 5,6, COL_menu, 0xfc,0xfc,0xfc,0xfc,0xfc,0xfc, 0xff };
static char pic_zero[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x98,0x98,0x98,0x98,0xf8, 0xff };
static char pic_one[] =
{ 0xfe, 5,6, COL_menuString, 0x70,0x30,0x30,0x30,0x30,0x78, 0xff };
static char pic_two[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x18,0x18,0xf8,0x80,0xf8, 0xff };
static char pic_three[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x18,0xf8,0x18,0x18,0xf8, 0xff };
static char pic_four[] =
{ 0xfe, 5,6, COL_menuString, 0xd0,0xd0,0xd0,0xf8,0x10,0x10, 0xff };
static char pic_five[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0xc0,0xf8,0x08,0x08,0xf8, 0xff };
static char pic_six[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0xc0,0xf8,0xc8,0xc8,0xf8, 0xff };
static char pic_seven[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x98,0x18,0x18,0x30,0x30, 0xff };
static char pic_eight[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x98,0xf8,0x98,0x98,0xf8, 0xff };
static char pic_nine[] =
{ 0xfe, 5,6, COL_menuString, 0xf8,0x98,0x98,0xf8,0x18,0xf8, 0xff };
static char pic_rgb_r[] = {
0xfe, 11,9, COL_menuString,
0x3f,0x00,0x30,0x80,0x30,0x80,0x30,0x80,0x3f,0x00,0x32,
0x00,0x33,0x00,0x31,0x00,0x31,0x80,0xff
};
static char pic_rgb_g[] = {
0xfe, 11,9, COL_menuString,
0x1f,0x00,0x30,0x80,0x30,0x00,0x30,0x00,0x33,0x80,0x30,
0x80,0x30,0x80,0x30,0x80,0x1f,0x80,0xff
};
static char pic_rgb_b[] = {
0xfe, 11,9, COL_menuString,
0x3f,0x00,0x30,0x80,0x30,0x80,0x30,0x80,0x3f,0x00,0x30,
0x80,0x30,0x80,0x30,0x80,0x3f,0x00,0xff
};
static int pic_rgb_updown[] = {
1,
15,White,
(int)"fffffffffff",
(int)"fffff1fffff",
(int)"ffff111ffff",
(int)"fff11111fff",
(int)"fffffffffff",
(int)"fffffffffff",
(int)"fffffffffff",
(int)"fffffffffff",
(int)"fffffffffff",
(int)"fffffffffff",
(int)"fff11111fff",
(int)"ffff111ffff",
(int)"fffff1fffff",
(int)"fffffffffff",
(int)NULL
};
static char pic_save[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0xff,0x00,0x3e,0x19,0x80,
0x3e,0x19,0xc0,0x3e,0x19,0xc0,0x3e,0x01,0xc0,0x3f,0xff,0xc0,
0x3f,0xff,0xc0,0x30,0x00,0x80,0x30,0x00,0x60,0x30,0x01,0xe0,
0x30,0x07,0xe0,0x30,0x1f,0xe0,0x30,0x07,0xe0,0x30,0x01,0xe0,
0x30,0x00,0x60,0x3f,0xff,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_load[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0xff,0x00,0x3e,0x19,0x80,
0x3e,0x19,0xc0,0x3e,0x19,0xc0,0x3e,0x01,0xc0,0x3f,0xff,0xc0,
0x3f,0xff,0xc0,0x30,0x00,0xc0,0x30,0x18,0xc0,0x30,0x1e,0x40,
0x30,0x1f,0x80,0x30,0x1f,0xe0,0x30,0x1f,0x80,0x30,0x1e,0x40,
0x30,0x18,0xc0,0x3f,0xe7,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_copy[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x3f,0xf0,0x00,0x20,0x10,0x00,
0x20,0x10,0x00,0x22,0xff,0xc0,0x27,0x00,0x40,0x23,0x80,0x40,
0x21,0xd0,0x40,0x20,0xf0,0x40,0x20,0x70,0x40,0x20,0xf0,0x40,
0x20,0x00,0x40,0x20,0x80,0x40,0x3f,0x80,0x40,0x00,0x80,0x40,
0x00,0x80,0x40,0x00,0x80,0x40,0x00,0xff,0xc0,0x00,0x00,0x00,
0xff
};
static char pic_view[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0xfc,0x00,0x0f,0xff,0x00,
0x1b,0xfd,0x80,0x27,0xfe,0x40,0x47,0xfe,0x20,0x03,0xfc,0x00,
0x11,0xf8,0x80,0x0f,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_setup[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x37,0x80,0x00,0x14,0x80,0x00,0x04,0x80,0x00,
0x78,0xe0,0x00,0x00,0x00,0x00,0x37,0x80,0x00,0x00,0x83,0x00,
0x34,0x81,0x00,0x03,0x3f,0xe0,0x71,0x20,0x20,0x53,0x8f,0x80,
0x74,0xc2,0x00,0x00,0x0b,0x80,0x00,0x12,0x00,0x00,0x1e,0x00,
0x00,0x13,0x80,0x00,0x30,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_paint[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0xc0,0x00,0x01,0x48,0x00,0x01,0x38,0x00,
0x01,0x24,0x00,0x01,0x42,0x00,0x00,0x81,0x00,0x01,0x80,0x80,
0x06,0xc0,0x40,0x0c,0x00,0x20,0x0b,0x00,0x20,0x08,0x80,0x40,
0x00,0x40,0x80,0x08,0x21,0x00,0x00,0x12,0x00,0x08,0x0c,0x00,
0x08,0x00,0x00,0x3f,0xe0,0x00,0x7f,0xfc,0x00,0x07,0x80,0x00,
0xff
};
static char pic_line[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
0x00,0x01,0x00,0x00,0x02,0x00,0x00,0x04,0x00,0x00,0x08,0x00,
0x00,0x10,0x00,0x00,0x20,0x00,0x00,0x40,0x00,0x00,0x80,0x00,
0x01,0x00,0x00,0x02,0x00,0x00,0x04,0x00,0x00,0x08,0x00,0x00,
0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_spray[] = {
0xfe, 20,20, Black,
0x20,0x00,0x00,0x08,0x00,0x00,0x22,0x00,0x00,0x08,0xbf,0x00,
0x22,0x11,0x00,0x08,0xa1,0x00,0x22,0x3f,0x00,0x08,0x0c,0x00,
0x20,0x1e,0x00,0x00,0x21,0x00,0x00,0x40,0x80,0x00,0xff,0xc0,
0x00,0xff,0xc0,0x00,0xff,0xc0,0x00,0xff,0xc0,0x00,0xff,0xc0,
0x00,0x80,0x40,0x00,0x80,0x40,0x00,0xff,0xc0,0x00,0x00,0x00,
0xff
};
static char pic_fline[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xc0,
0x00,0x06,0x00,0x00,0x18,0x00,0x00,0x20,0x00,0x00,0x60,0x00,
0x01,0xf0,0x00,0x02,0x88,0x00,0x04,0x88,0x00,0x08,0x88,0x00,
0x08,0x88,0x00,0x10,0xf0,0x00,0x10,0x00,0x00,0x10,0x00,0x00,
0x10,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_exit[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x07,0xfc,0x00,0x04,0x04,0x00,0x04,0x04,0x00,
0x04,0x04,0x00,0x04,0x04,0x00,0x04,0x04,0x00,0x05,0x84,0x00,
0x05,0x84,0x00,0x04,0x04,0x00,0x04,0x04,0x00,0x04,0x04,0x00,
0x04,0x04,0x00,0x07,0xfc,0x00,0x00,0x00,0x00,0x1d,0x57,0x00,
0x11,0x52,0x00,0x18,0x92,0x00,0x11,0x52,0x00,0x1d,0x52,0x00,
0xff
};
static char pic_pen[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x01,0x50,0x00,
0x00,0xe0,0x00,0x03,0xf8,0x00,0x00,0xe0,0x00,0x01,0x50,0x00,
0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_box[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3f,0xff,0xc0,0x20,0x00,0x40,0x20,0x00,0x40,0x20,0x00,0x40,
0x20,0x00,0x40,0x20,0x00,0x40,0x20,0x00,0x40,0x20,0x00,0x40,
0x20,0x00,0x40,0x20,0x00,0x40,0x20,0x00,0x40,0x3f,0xff,0xc0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_boxfill[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x3f,0xff,0xc0,0x2a,0xaa,0xc0,0x35,0x55,0x40,0x2a,0xaa,0xc0,
0x35,0x55,0x40,0x2a,0xaa,0xc0,0x35,0x55,0x40,0x2a,0xaa,0xc0,
0x35,0x55,0x40,0x2a,0xaa,0xc0,0x35,0x55,0x40,0x3f,0xff,0xc0,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_fpset[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x40,
0x00,0x04,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x40,0x00,
0x00,0xa0,0x00,0x02,0x08,0x00,0x00,0x80,0x00,0x08,0x08,0x00,
0x00,0x80,0x00,0x10,0x50,0x00,0x00,0x00,0x00,0x10,0x00,0x00,
0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_pat[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x03,0xfc,0x00,0x04,0x02,0x00,0x08,0x01,0x00,
0x0f,0xff,0x00,0x3c,0x03,0xc0,0x19,0x99,0x80,0x0b,0x9d,0x00,
0x0b,0x0d,0xe0,0x08,0x01,0x20,0x08,0x91,0x20,0x10,0x60,0x40,
0x20,0x00,0x80,0x48,0x00,0x00,0x48,0xee,0xe0,0x78,0xaa,0x40,
0x08,0xee,0x40,0x08,0x8a,0x40,0x08,0x8a,0x40,0x00,0x00,0x00,
0xff
};
static char pic_accent[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x18,0x00,0x00,0x34,0x00,0x00,
0x34,0x73,0x80,0x62,0xc6,0x00,0x7e,0xc6,0x00,0x62,0x73,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_zoom[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x3f,0xc0,0x00,0x20,0x52,0x00,0x20,0x40,0x40,
0x20,0xff,0xe0,0x20,0x80,0x20,0x20,0x80,0x20,0x20,0x80,0x20,
0x20,0x80,0x20,0x3f,0x80,0x20,0x00,0x80,0x20,0x10,0x80,0x20,
0x00,0x80,0x20,0x00,0x80,0x20,0x04,0x80,0x20,0x00,0x80,0x20,
0x00,0x80,0x20,0x01,0x80,0x20,0x00,0xff,0xe0,0x00,0x00,0x00,
0xff
};
static char pic_undo[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x40,0x00,0x00,0x68,0x0c,0x00,0x68,0x0c,0x00,0x68,0x04,0x00,
0x6b,0x0c,0xc0,0x6a,0x9d,0xa0,0x6a,0xb5,0xa0,0x6a,0xb5,0xa0,
0x6a,0xb5,0xa0,0x7a,0xbd,0xe0,0x36,0x9c,0xc0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_blot[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x08,0x30,0x00,0x0c,0x24,0x00,0x04,0x7e,0x00,
0x00,0x41,0x00,0x00,0x82,0x00,0x31,0xa6,0x80,0x39,0xf7,0xc0,
0x08,0x18,0x00,0x00,0x7e,0x00,0x07,0xc3,0xc0,0x07,0x38,0xe0,
0x04,0x62,0x00,0x0c,0x1c,0x00,0x18,0xf1,0x00,0x18,0x0e,0x00,
0x10,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_diffuse[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x2c,0x41,0x80,0x3d,0xef,0xc0,0x24,0x31,0x00,
0x34,0x23,0x00,0x35,0xff,0xe0,0x15,0x80,0x60,0x1d,0xbe,0xc0,
0x14,0x00,0x00,0x15,0xff,0xe0,0x1c,0xc0,0x00,0x1c,0xb8,0xc0,
0x15,0xac,0x80,0x35,0x2b,0x00,0x25,0x6a,0x80,0x64,0x5a,0x80,
0x64,0x94,0xc0,0x4c,0x2c,0xc0,0x00,0x00,0x40,0x00,0x00,0x00,
0xff
};
static char pic_sand[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x0c,0x00,0x00,0x0c,0x00,0x00,0x0c,0x00,
0x00,0x24,0x00,0x07,0x36,0x80,0x3e,0x66,0xc0,0x18,0xe6,0x60,
0x38,0x46,0x20,0x30,0x16,0x00,0x7f,0x0e,0x80,0xfb,0x05,0x00,
0x1b,0x03,0x00,0x1f,0x06,0x00,0x1c,0x0c,0x00,0x10,0x38,0x00,
0x00,0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_poly[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x1e,0x00,0x00,
0x15,0xc0,0x00,0x1a,0xb8,0x00,0x15,0x57,0x80,0x1a,0xaa,0xc0,
0x15,0x55,0x40,0x1a,0xaa,0xc0,0x35,0x55,0x40,0x2a,0xaa,0xc0,
0x35,0x55,0x40,0x2a,0xaa,0xc0,0x35,0x55,0x40,0x2a,0xaa,0xc0,
0x35,0x55,0x40,0x7f,0xff,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_goshi[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x30,0x38,0x00,0x38,0x18,0x00,0x1b,0xff,0xc0,
0x1b,0x00,0xc0,0x7d,0x77,0x00,0x48,0xb5,0x00,0x09,0xf2,0x00,
0x08,0x6f,0x00,0x08,0xc1,0xe0,0x0d,0x1e,0x40,0x38,0x70,0x00,
0x79,0x03,0x80,0x49,0xff,0xc0,0x18,0x08,0x00,0x10,0xc9,0x00,
0x71,0x98,0xc0,0x72,0x18,0x40,0x20,0x38,0x00,0x00,0x00,0x00,
0xff
};
static char pic_play[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0xff,0x00,0x08,0x01,0x00,
0x08,0x81,0x00,0x08,0xc1,0x00,0x08,0xe1,0x00,0x08,0xf1,0x00,
0x08,0xe1,0x00,0x08,0xc1,0x00,0x08,0x81,0x00,0x08,0x01,0x00,
0x0f,0xff,0x00,0x00,0x00,0x00,0x72,0x1a,0x20,0x4a,0x25,0x40,
0x7a,0x24,0x80,0x42,0x3c,0x80,0x43,0xa4,0x80,0x00,0x00,0x00,
0xff
};
static char pic_rec[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0xff,0x00,0x08,0x01,0x00,
0x08,0x81,0x00,0x08,0xc1,0x00,0x08,0xe1,0x00,0x08,0xf1,0x00,
0x08,0xe1,0x00,0x08,0xc1,0x00,0x08,0x81,0x00,0x08,0x01,0x00,
0x0f,0xff,0x00,0x00,0x00,0x00,0x1e,0xf7,0x80,0x12,0x84,0x00,
0x1e,0xe4,0x00,0x14,0x84,0x00,0x12,0xf7,0x80,0x00,0x00,0x00,
0xff
};
static char pic_stop[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0xff,0x00,0x08,0x01,0x00,
0x08,0x01,0x00,0x08,0x01,0x00,0x08,0x61,0x00,0x08,0x61,0x00,
0x08,0x61,0x00,0x08,0x01,0x00,0x08,0x01,0x00,0x08,0x01,0x00,
0x0f,0xff,0x00,0x00,0x00,0x00,0x3f,0xfd,0xe0,0x21,0x25,0x20,
0x3d,0x25,0xe0,0x05,0x25,0x00,0x3d,0x3d,0x00,0x00,0x00,0x00,
0xff
};
static char pic_sand_area[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x01,0xe0,0x00,0x1e,0x20,0x00,0x10,0x20,0x00,
0x10,0x20,0x00,0x20,0x20,0x00,0x20,0x26,0x00,0x20,0x02,0x00,
0x20,0x0a,0x00,0x43,0xdb,0x40,0x41,0x13,0x60,0x43,0x02,0x20,
0x72,0x00,0x80,0x07,0xc1,0x00,0x01,0x43,0x00,0x01,0xc6,0x00,
0x01,0x0c,0x00,0x00,0x38,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_diffuse_area[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x01,0xe0,0x00,0x1e,0x20,0x00,0x10,0x20,0x00,
0x10,0x20,0x00,0x20,0x00,0x00,0x20,0x08,0x80,0x23,0xbf,0xe0,
0x22,0x88,0x80,0x42,0xbf,0xe0,0x43,0xaf,0x20,0x42,0x80,0x00,
0x7a,0xbf,0xe0,0x03,0x9b,0x00,0x02,0xa5,0x20,0x02,0x9b,0xc0,
0x02,0xb5,0x80,0x02,0x89,0x60,0x00,0x03,0x20,0x00,0x00,0x00,
0xff
};
static char pic_smooth[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x01,0xe0,0x00,0x1e,0x20,0x00,0x10,0x20,0x00,
0x10,0x20,0x00,0x20,0x00,0x40,0x20,0xcf,0xe0,0x20,0x4c,0x60,
0x20,0x05,0xc0,0x40,0x05,0x40,0x41,0xbf,0xe0,0x40,0x10,0x20,
0x7c,0x07,0xc0,0x00,0x24,0x40,0x00,0x27,0xc0,0x00,0x4c,0x40,
0x00,0xcf,0xc0,0x01,0x88,0xc0,0x00,0x08,0xc0,0x00,0x00,0x00,
0xff
};
static char pic_copypoly[] = {
0xfe, 20,20, Black,
0x00,0x06,0x00,0x00,0x3a,0x00,0x01,0xc2,0x00,0x0e,0x02,0x00,
0x08,0x02,0x00,0x10,0x00,0x60,0x10,0x03,0xa0,0x10,0x9c,0x20,
0x21,0xc0,0x20,0x20,0xe0,0x20,0x21,0x74,0x20,0x41,0x3c,0x20,
0x7d,0x1c,0x20,0x02,0x3c,0x20,0x02,0x00,0x20,0x02,0x00,0x20,
0x04,0x00,0x20,0x07,0xff,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_rotatebox[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x7f,0xfe,0x00,0x40,0x02,0xc0,0x40,0x02,0x20,
0x41,0x02,0x60,0x41,0xc2,0x20,0x42,0x32,0x00,0x42,0x0c,0x00,
0x44,0x03,0x00,0x44,0x00,0xc0,0x68,0x00,0x20,0x08,0x00,0x40,
0x18,0x00,0x40,0x0c,0x00,0x80,0x03,0x00,0x80,0x00,0xc1,0x00,
0x00,0x31,0x00,0x00,0x0e,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0xff
};
static char pic_rotatepoly[] = {
0xfe, 20,20, Black,
0x00,0x06,0x00,0x00,0x3a,0xc0,0x01,0xc2,0x20,0x0e,0x02,0x60,
0x08,0x02,0x20,0x10,0x00,0x00,0x10,0x7f,0xe0,0x10,0x40,0x20,
0x20,0x80,0x20,0x21,0x00,0x20,0x21,0x00,0x40,0x42,0x00,0x40,
0x74,0x00,0x40,0x04,0x00,0x80,0x08,0x00,0x80,0x0e,0x00,0x80,
0x01,0xc1,0x00,0x00,0x39,0x00,0x00,0x07,0x00,0x00,0x00,0x00,
0xff
};
static char pic_zoompoly[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x20,0x00,0x01,0xe4,0x00,0x0e,0x20,0x80,
0x08,0x20,0x00,0x10,0x20,0x60,0x10,0x23,0xa0,0x10,0x1c,0x20,
0x3e,0xe0,0x20,0x00,0x80,0x20,0x21,0x00,0x20,0x01,0x00,0x20,
0x11,0x00,0x20,0x02,0x00,0x20,0x12,0x00,0x20,0x02,0x00,0x20,
0x04,0x00,0x20,0x07,0xff,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_colchg[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x00,0x00,0x32,0x00,0x00,
0x64,0x00,0x00,0x7f,0x80,0x00,0x64,0x86,0x00,0x64,0x83,0x00,
0x7f,0xbf,0xe0,0x60,0x05,0x00,0x60,0x15,0x60,0x61,0xb5,0x20,
0x7f,0x80,0x00,0x00,0x0f,0x80,0x00,0x09,0x80,0x00,0x15,0x00,
0x00,0x03,0x80,0x00,0x3c,0xe0,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_sharp[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x01,0xe0,0x00,0x1e,0x20,0x00,0x10,0x20,0x00,
0x10,0x20,0x00,0x20,0x20,0x00,0x20,0x00,0x00,0x20,0x3b,0xc0,
0x2f,0xa9,0xc0,0x45,0x69,0x80,0x46,0x5b,0x00,0x45,0x14,0xc0,
0x75,0xa0,0x60,0x07,0x4e,0x00,0x04,0x00,0x00,0x04,0x7f,0xc0,
0x04,0x04,0x00,0x04,0x24,0x80,0x04,0x6c,0xc0,0x00,0x00,0x00,
0xff
};
static char pic_boxvturn[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x7f,0xf0,0x00,0x40,0x10,0x00,0x40,0x10,0x00,
0x47,0xff,0x00,0x44,0x01,0x00,0x44,0x01,0x00,0x44,0x01,0x00,
0x44,0x01,0x00,0x44,0x00,0x00,0x44,0x01,0x80,0x44,0x03,0xc0,
0x44,0x07,0xe0,0x7c,0x01,0x80,0x04,0x01,0x80,0x04,0x01,0x80,
0x07,0xf7,0xe0,0x00,0x03,0xc0,0x00,0x01,0x80,0x00,0x00,0x00,
0xff
};
static char pic_boxhturn[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x7f,0xf0,0x00,0x40,0x10,0x00,0x40,0x10,0x00,
0x47,0xff,0x00,0x44,0x01,0x00,0x44,0x01,0x00,0x44,0x01,0x00,
0x44,0x01,0x00,0x44,0x01,0x00,0x44,0x01,0x00,0x44,0x01,0x00,
0x44,0x01,0x00,0x7c,0x08,0x80,0x04,0x18,0xc0,0x04,0x3f,0xe0,
0x07,0xbf,0xe0,0x00,0x18,0xc0,0x00,0x08,0x80,0x00,0x00,0x00,
0xff
};
static char pic_polyvturn[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x3c,0x00,0x03,0xc4,0x00,0x0c,0x00,0x00,
0x08,0x07,0x80,0x08,0x78,0x80,0x11,0x80,0x80,0x11,0x00,0x80,
0x11,0x00,0x80,0x22,0x00,0x00,0x22,0x01,0x80,0x22,0x03,0xc0,
0x44,0x07,0xe0,0x74,0x01,0x80,0x04,0x01,0x80,0x08,0x01,0x80,
0x0f,0xf7,0xe0,0x00,0x03,0xc0,0x00,0x01,0x80,0x00,0x00,0x00,
0xff
};
static char pic_polyhturn[] = {
0xfe, 20,20, Black,
0x00,0x00,0x00,0x00,0x3c,0x00,0x03,0xc4,0x00,0x0c,0x00,0x00,
0x08,0x07,0x80,0x08,0x78,0x80,0x11,0x80,0x80,0x11,0x00,0x80,
0x11,0x00,0x80,0x22,0x00,0x80,0x22,0x00,0x80,0x22,0x00,0x80,
0x44,0x00,0x00,0x74,0x08,0x80,0x04,0x18,0xc0,0x08,0x3f,0xe0,
0x0f,0xbf,0xe0,0x00,0x18,0xc0,0x00,0x08,0x80,0x00,0x00,0x00,
0xff
};
static char pic_penbase[] = {
0xfe,
20,26, Black,
0xff,0xff,0xf0, 0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10,
0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10,
0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10,
0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10,
0x80,0x00,0x10, 0x80,0x00,0x10, 0x80,0x00,0x10, 0xff,0xff,0xf0,
0x00,0x00,0x00, 0x1e,0xf4,0x80, 0x12,0x86,0x80, 0x1e,0xe5,0x80,
0x10,0x84,0x80, 0x10,0xf4,0x80,
20,26, White,
0x00,0x00,0x00, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0,
0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0,
0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0,
0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0,
0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x7f,0xff,0xe0, 0x00,0x00,0x00,
0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00,
0x00,0x00,0x00, 0x00,0x00,0x00,
0xff
};
static int pic_bikkuri[] = {
3,
1,Black,
15,Yellow,
2,Black,
(int)"00000000000000000000",
(int)"00000002222220000000",
(int)"00000222111122200000",
(int)"000022111ff111220000",
(int)"00022111ffff11122000",
(int)"0022111ffffff1112200",
(int)"0021111ffffff1111200",
(int)"0221111ffffff1111220",
(int)"02111111ffff11111120",
(int)"02111111ffff11111120",
(int)"02111111ffff11111120",
(int)"021111111ff111111120",
(int)"022111111ff111111220",
(int)"00211111111111111200",
(int)"00221111111111112200",
(int)"000221111ff111122000",
(int)"000022111ff111220000",
(int)"00000222111122200000",
(int)"00000002222220000000",
(int)"00000000000000000000",
(int)NULL
};
static char pic_rgb_updown2[] = {
0xfe,
11,14, COL_menuLight,
0xff,0xe0,0x80,0x00,0x82,0x00,0x81,0x00,0x80,0x80,0x8f,0x80,0x80,0x00,
0xff,0xe0,0x80,0x00,0x80,0x80,0x81,0x00,0x82,0x00,0x80,0x00,0x80,0x00,
11,14, COL_menuShade,
0x00,0x00,0x00,0x20,0x04,0x20,0x0e,0x20,0x1f,0x20,0x00,0x20,0x7f,0xe0,
0x00,0x00,0x00,0x20,0x1f,0x20,0x0e,0x20,0x04,0x20,0x00,0x20,0x7f,0xe0,
0xff
};
static char pic_artemis[] = {
0xfe,
52,12, 0xff,
0x0c,0x3f,0x3f,0xf0,0x00,0x00,0x00,
0x0c,0x30,0x83,0x00,0x00,0x00,0x00,
0x0c,0x30,0x43,0x00,0x00,0x18,0x00,
0x16,0x30,0x43,0x00,0x00,0x18,0x00,
0x16,0x30,0x43,0x00,0x00,0x00,0x00,
0x16,0x30,0x83,0x0e,0x3d,0x99,0xf0,
0x23,0x3f,0x03,0x19,0x32,0x5b,0x00,
0x23,0x32,0x03,0x30,0xb2,0x5b,0x00,
0x23,0x31,0x03,0x3f,0xb2,0x59,0xe0,
0x7f,0xb1,0x03,0x30,0x32,0x58,0x30,
0x41,0xb0,0x83,0x18,0x32,0x58,0x30,
0x41,0xb0,0xc3,0x0f,0x32,0x5b,0xe0,
0xff
};
static char pic_selectoff[] = {
0xfe,
12,12, COL_menu,
0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,
0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,0xff,0xf0,
12,12, COL_menuString,
0x00,0x00,0x3f,0xc0,0x40,0x20,0x40,0x20,0x40,0x20,0x40,0x20,
0x40,0x20,0x40,0x20,0x40,0x20,0x40,0x20,0x3f,0xc0,0x00,0x00,
0xff
};
static char pic_selecton[] = {
0xfe,
12,12, COL_menuString,
0x00,0x00,0x3f,0xc0,0x40,0x20,0x40,0x20,0x40,0x20,0x40,0x20,
0x40,0x20,0x40,0x20,0x40,0x20,0x40,0x20,0x3f,0xc0,0x00,0x00,
12,12, Black,
0x00,0x20,0x00,0x40,0x00,0x80,0x01,0x00,0x03,0x00,0x16,0x00,
0x0e,0x00,0x0c,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_leftsw[] = {
0xfe,
12,12, COL_menu,
0x00,0x00,0x7f,0xe0,0x7c,0xe0,0x78,0x60,0x70,0x60,0x60,0x60,
0x60,0x60,0x70,0x60,0x78,0x60,0x7c,0x60,0x7f,0xe0,0x00,0x00,
12,12, COL_menu2,
0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x07,0x00,0x0f,0x00,
0x1f,0x00,0x0f,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
12,12, COL_menuLight,
0xff,0xf0,0x80,0x00,0x80,0x00,0x80,0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x83,0x80,0x80,0x00,0x80,0x00,
12,12, COL_menuShade,
0x00,0x00,0x00,0x10,0x03,0x10,0x04,0x10,0x08,0x10,0x10,0x10,
0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x7f,0xf0,
0xff
};
static char pic_rightsw[] = {
0xfe,
12,12, COL_menu,
0x00,0x00,0x7f,0xe0,0x67,0xe0,0x63,0xe0,0x61,0xe0,0x60,0xe0,
0x60,0x60,0x60,0xe0,0x61,0xe0,0x63,0xe0,0x7f,0xe0,0x00,0x00,
12,12, COL_menu2,
0x00,0x00,0x00,0x00,0x00,0x00,0x0c,0x00,0x0e,0x00,0x0f,0x00,
0x0f,0x00,0x0e,0x00,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
12,12, COL_menuLight,
0xff,0xf0,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,
0x80,0x80,0x81,0x00,0x82,0x00,0x9c,0x00,0x80,0x00,0x80,0x00,
12,12, COL_menuShade,
0x00,0x00,0x00,0x10,0x18,0x10,0x10,0x10,0x10,0x10,0x10,0x10,
0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x10,0x00,0x10,0x7f,0xf0,
0xff
};
static char pic_upsw[] = {
0xfe,
12,12, COL_menu,
0x00,0x00,0x7f,0xe0,0x7f,0xe0,0x7b,0xe0,0x71,0xe0,0x60,0xe0,
0x40,0x60,0x40,0x20,0x60,0x20,0x7f,0xe0,0x7f,0xe0,0x00,0x00,
12,12, COL_menu2,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x00,0x0f,0x00,
0x1f,0x80,0x1f,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
12,12, COL_menuLight,
0xff,0xf0,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00,
0x80,0x00,0x80,0x40,0x9f,0xc0,0x80,0x00,0x80,0x00,0x80,0x00,
12,12, COL_menuShade,
0x00,0x00,0x00,0x10,0x00,0x10,0x04,0x10,0x08,0x10,0x10,0x10,
0x20,0x10,0x20,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x7f,0xf0,
0xff
};
static char pic_downsw[] = {
0xfe,
12,12, COL_menu,
0x00,0x00,0x7f,0xe0,0x7f,0xe0,0x40,0x60,0x40,0x20,0x40,0x20,
0x70,0x60,0x78,0xe0,0x79,0xe0,0x7f,0xe0,0x7f,0xe0,0x00,0x00,
12,12, COL_menu2,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1f,0x80,0x1f,0x80,
0x0f,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
12,12, COL_menuLight,
0xff,0xf0,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x40,0x80,0x40,
0x80,0x80,0x81,0x00,0x86,0x00,0x80,0x00,0x80,0x00,0x80,0x00,
12,12, COL_menuShade,
0x00,0x00,0x00,0x10,0x00,0x10,0x3f,0x90,0x20,0x10,0x20,0x10,
0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x00,0x10,0x7f,0xf0,
0xff
};
static char pic_mask[] = {
0xfe,
20,20, Black,
0x00,0x00,0x00,0x1c,0x03,0x80,0x13,0x0c,0x80,0x10,0xf0,0x80,
0x10,0x00,0x80,0x0b,0x0d,0x00,0x0b,0x9d,0x00,0x08,0x91,0x00,
0x04,0x02,0x00,0x04,0x62,0x00,0x02,0x94,0x00,0x01,0x08,0x00,
0x00,0x00,0x00,0x7e,0xf9,0xe0,0x06,0x19,0x20,0x04,0x13,0x20,
0x34,0x20,0x60,0x18,0x70,0x60,0x0c,0xd8,0xc0,0x00,0x00,0x00,
0xff
};
static char pic_test[] = {
0xfe,
20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,
0x3c,0x01,0x00,0x00,0xfd,0x00,0x7e,0x09,0x00,0x08,0x11,0x80,
0x08,0x31,0x60,0x18,0x49,0x00,0x10,0x85,0x00,0x20,0x01,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_ellipsefill[] = {
0xfe,
20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xf8,0x00,0x0f,0x57,0x00,
0x1a,0xaa,0x80,0x35,0x55,0x40,0x2a,0xaa,0xc0,0x55,0x55,0x60,
0x6a,0xaa,0xa0,0x55,0x55,0x60,0x6a,0xaa,0xa0,0x55,0x55,0x60,
0x2a,0xaa,0xc0,0x35,0x55,0x40,0x1a,0xaa,0x80,0x0f,0x57,0x00,
0x01,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_ellipse[] = {
0xfe,
20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xf8,0x00,0x0e,0x07,0x00,
0x10,0x00,0x80,0x20,0x00,0x40,0x20,0x00,0x40,0x40,0x00,0x20,
0x40,0x00,0x20,0x40,0x00,0x20,0x40,0x00,0x20,0x40,0x00,0x20,
0x40,0x00,0x20,0x20,0x00,0x40,0x20,0x00,0x40,0x10,0x00,0x80,
0x0e,0x07,0x00,0x01,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char pic_airbrush[] = {
0xfe,
20,20, Black,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40,0x00,0x00,
0x10,0x00,0x00,0x45,0xf8,0x00,0x11,0xc6,0x00,0x40,0x81,0x00,
0x01,0xc0,0x80,0x03,0xe0,0x80,0x04,0x10,0x40,0x04,0x10,0x40,
0x04,0x10,0x40,0x04,0x10,0x40,0x04,0x10,0x00,0x07,0xf0,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xff
};
static char *piclist[] =
{
NULL,
(char*)pic_nonum,
(char*)pic_zero,(char*)pic_one,(char*)pic_two,(char*)pic_three,
(char*)pic_four,(char*)pic_five,(char*)pic_six,(char*)pic_seven,
(char*)pic_eight,(char*)pic_nine,
(char*)pic_rgb_updown,
(char*)pic_rgb_r,(char*)pic_rgb_g,(char*)pic_rgb_b,
(char*)pic_save,(char*)pic_load,(char*)pic_copy,(char*)pic_view,
(char*)pic_leftsw,(char*)pic_rightsw,
(char*)pic_setup,(char*)pic_paint,(char*)pic_line,(char*)pic_spray,
(char*)pic_fline,(char*)pic_exit,(char*)pic_pen,
pic_boxfill,(char*)pic_penbase,(char*)pic_fpset,
(char*)pic_pat,(char*)pic_accent,(char*)pic_zoom,
(char*)pic_bikkuri,(char*)pic_undo,
(char*)pic_blot,(char*)pic_diffuse,(char*)pic_sand,
(char*)pic_poly,(char*)pic_goshi,
(char*)pic_play,(char*)pic_rec,(char*)pic_stop,
(char*)pic_sand_area,(char*)pic_diffuse_area,(char*)pic_smooth,
(char*)pic_copypoly,(char*)pic_rotatebox,
(char*)pic_rotatepoly,(char*)pic_zoompoly,
(char*)pic_colchg,(char*)pic_sharp,
(char*)pic_boxvturn, (char*)pic_boxhturn,
(char*)pic_polyvturn,(char*)pic_polyhturn,
(char*)pic_rgb_updown2,
(char*)pic_artemis,pic_selectoff,pic_selecton,
pic_upsw, pic_downsw,
pic_mask, pic_test,
pic_ellipse, pic_ellipsefill, pic_box,
pic_airbrush,
NULL
};
void putpict(int x, int y, int num)
{
char *p; char *sp; int i,c,xx,yy;
int plt[16];
for (i=0; i<16; i++)
plt[i] = i;
p = piclist[num];
if (p == NULL)
return;
if (*p == 0xff)
{
static char bit[] = {128,64,32,16,8,4,2,1};
int xlen,ylen,xbytes,i,j,k;
xlen = *(p+1), ylen = *(p+2), p+=3;
xbytes = (xlen+7)/8;
if (DMgetifonepage())
{
char patbuf[32*32*2];
pict_makeicon32k(patbuf,xlen,ylen,p);
grp_putblk(x,y,xlen,ylen, (char*)patbuf, DrawNORMAL);
}
else
{
char patbuf[32*32*2];
pict_makeicon16(patbuf,xlen,ylen,p);
grp_putblk(x,y,xlen,ylen, (char*)patbuf, DrawNORMAL);
// for (i=0; i<ylen; i++,p+=xbytes)
// {
// for (j=0; j<xbytes; j++)
// for (k=0; k<8; k++)
// if (j*8+k < xlen && (*(p + j) & bit[k]) != 0)
// gpset(x+j*8+k,y+i,Black,DrawNORMAL);
// }
}
}
else if (*p == 0xfe)
{
p++;
while (*p != 0xff)
{
int xlen=*p,ylen=*(p+1),plt=*(p+2);
p+=3;
#define PUTBITBLOCK(x1,y1,x2,y2,dat) { \
char para[16]; DWORD(para)=(unsigned int)dat; WORD(para+4)=getds(); \
WORD(para+6)=x1; WORD(para+8)=y1; WORD(para+10)=x2; WORD(para+12)=y2; \
EGB_putBlockColor(EGB_work, 0, para); }
if (plt != 0xff)
EGB_color(EGB_work, 0, DMgetmenuplt(plt));
EGB_writeMode(EGB_work, DrawNORMAL);
PUTBITBLOCK(x,y,x+xlen-1,y+ylen-1, p);
p += ((xlen+7)/8)*ylen;
}
}
else
{
int *pp = (int*)p;
for (i=*pp,pp++; i; i--,pp+=2)
plt[*pp] = *(pp+1);
for (yy=0; *pp!=(int)NULL; pp++,yy++)
{
for (sp=(char*)*pp,xx=0; *sp!=0; sp++,xx++)
{
c = plt[ctox(*sp)];
if (c != 0)
gpset(x+xx,y+yy,menu_plt(c),DrawNORMAL);
}
}
}
}
/* end of pict.c */